From: Adel Gadllah Date: Sun, 17 Feb 2013 19:13:46 +0000 (+0100) Subject: messageTray: Allow dwell to work in the overview X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4805 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9a30c3d72266ce3db15a084bbc91bdca186855a4;p=gnome-shell.git messageTray: Allow dwell to work in the overview Special case the overview in _trayDwellTimeout because the tray is hidden by default in the overview now. --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 1e2c0784a..c1ab9ea19 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1850,7 +1850,10 @@ const MessageTray = new Lang.Class({ _trayDwellTimeout: function() { this._trayDwellTimeoutId = 0; - if (Main.modalCount > 0) + // We don't want to open the tray when a modal dialog + // is up, so we check the modal count for that. When we are in the + // overview we have to take the overview's modal push into account + if (Main.modalCount > (Main.overview.visible ? 1 : 0)) return false; // If the user interacted with the focus window since we started the tray